package 设计模式.factory.method_factory;

public class Test {
    public static void main(String[] args) {
        CoffeeStore store = new CoffeeStore();
        CoffeeFactory factory = new LatteCoffeeFactory();
        store.setFactory(factory);

        Coffee coffee = store.order();
        System.out.println(coffee);
    }
}
